},
_findMetaWindowForActor: function (actor) {
- if (actor._delegate instanceof Workspace.WindowClone)
+ if (actor._delegate.metaWindow)
return actor._delegate.metaWindow;
else if (actor.get_meta_window)
return actor.get_meta_window();
if (source instanceof AppDisplay.AppWellIcon) {
let appSystem = Shell.AppSystem.get_default();
app = appSystem.get_app(source.getId());
- } else if (source instanceof Workspace.WindowClone) {
+ } else if (source.metaWindow) {
let tracker = Shell.WindowTracker.get_default();
app = tracker.get_window_app(source.metaWindow);
}
let app = null;
if (dragEvent.source instanceof AppDisplay.AppWellIcon)
app = this._appSystem.get_app(dragEvent.source.getId());
- else if (dragEvent.source instanceof Workspace.WindowClone)
+ else if (dragEvent.source.metaWindow)
app = this._tracker.get_window_app(dragEvent.source.metaWindow);
else
return DND.DragMotionResult.CONTINUE;
let app = null;
if (source instanceof AppDisplay.AppWellIcon)
app = this._appSystem.get_app(source.getId());
- else if (source instanceof Workspace.WindowClone)
+ else if (source.metaWindow)
app = this._tracker.get_window_app(source.metaWindow);
// Don't allow favoriting of transient apps
let app = null;
if (source instanceof AppDisplay.AppWellIcon) {
app = this._appSystem.get_app(source.getId());
- } else if (source instanceof Workspace.WindowClone) {
+ } else if (source.metaWindow) {
app = this._tracker.get_window_app(source.metaWindow);
}
},
acceptDrop : function(source, actor, x, y, time) {
- if (source instanceof WindowClone) {
+ if (source.realWindow) {
let win = source.realWindow;
if (this._isMyWindow(win))
return false;
},
_handleDragOverNewWorkspace: function(source, dropActor, x, y, time) {
- if (source instanceof Workspace.WindowClone)
+ if (source.realWindow)
return DND.DragMotionResult.MOVE_DROP;
if (source.shellWorkspaceLaunch)
return DND.DragMotionResult.COPY_DROP;